<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        #app {
            box-sizing: border-box;
            padding: 20px;
        }

        header {
            font-size: 36px;
            font-weight: bold;
            margin-bottom: 30px;
        }

        h2 {
            margin-bottom: 30px;
        }

        input {
            width: 100%;
            height: 40px;
            line-height: 40px;
            outline: none;
            border: none;
            border-bottom: 1px solid gray;
        }

        button {
            width: 100%;
            height: 30px;
            line-height: 30px;
            background-color: lightgray;
            border-radius: 15px;
            border: none;
            margin-top: 40px;
        
        }

        .desc {
            margin-top: 10px;
            color: rgb(51, 187, 240);
            display: flex;
            justify-content: space-between;
        }
    </style>
</head>

<body>
    <div id="app">
        <header>×</header>
        <h2>密码登录</h2>
        <main>
            <input type="text" placeholder="手机/用户名" name="username" v-model="form.username">
            <br>
            <input type="password" placeholder="密码" name="password" v-model="form.password">
            <br>
            <button @click="login">登录</button>
            <div class="desc">
                <span>手机号登录</span>
                <span>忘记密码</span>
            </div>
        </main>
    </div>
</body>

</html>
<script src="./vue-2.5.21.js"></script>
<script>
    var v = new Vue({
        el: "#app",
        data: {
            form: {
                username: '',
                password: '',
            }
        },
        methods: {
            login() {
                console.log("this.form.username:",this.form.username);
                console.log("this.form.password:",this.form.password);
            }
        },
    })
</script>